<div id="order-record" class="order current">
	<table class="table-list">
  		<thead>
		    <tr>
		      <th class="name">商品标题</th>
		      <th class="trade-id">订单号</th>
		      <th class="time">成交时间</th>
		      <th class="num">成交金额</th>
		      <th class="num">佣金收入</th>
		    </tr>
	  	</thead>
	  	<tbody class="list">
		</tbody>
	</table>
	<!-- 分页开始 -->
	<div class="loading"><p>正在加载中^_^</p></div>
	<div class="tips">没有数据了</div>
	<div class="pages"></div>
	<!-- 分页结束 -->
</div>
<script type="text/javascript">
var orderList = $.koorz.getList;
orderList.conf.page = "#order-record .pages";
orderList.conf.tips = "#order-record .tips";
orderList.conf.loading = "#order-record .loading";
orderList.conf.list = "#order-record .list";
orderList.conf.url = "/api/orderList";
orderList.conf.callback = function(list,doc){
	$.each(list,function(index,val) {
		var html = '<tr>';
		html += '<td class="name">'+val.item_title+'</td>';
		html += '<td class="trade-id">'+val.trade_id+'</td>';
		html += '<td class="time">'+val.pay_time+'</td>';
		html += '<td class="num">'+val.pay_price+'</td>';
		html += '<td class="num">'+val.commission+'</td>';
		html += '</tr>';
		doc.append(html);
	});
}
orderList.init();	
</script>